<?php

use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use yii\bootstrap\Nav;
use yii\helpers\Url;
?>
<style>
#top_title {
    margin:auto;
}
#top_row {
    height:47.5px;
}
.breadcrumb {
    margin:auto;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
}
</style>
<div class="row" id="top_row">
	<!-- Profile Info and Notifications -->
	<div class="col-md-6 col-sm-8 clearfix">
        <h2 id="top_title"><?= Html::encode($this->title) ?></h2>
		
        <?= Breadcrumbs::widget(
            [
                'homeLink' => [
                    'label' => '<i class="entypo-home"></i> 首页',
                    'url' => ['/']
                ],
                'encodeLabels' => false,
                'tag' => 'ol',
                'class' => 'bc-3',
                'activeItemTemplate' => '<li class="active"><strong>{link}</strong></li>',
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []
            ]
        ) ?>
        
	</div>
	
	
	<!-- Raw Links -->
	<div class="col-md-6 col-sm-4 clearfix hidden-xs">
		
		<ul class="list-inline links-list pull-right">
			<li>
				<a href="/">首页</a>
			</li>
			
			<li class="sep"></li>
			
			<li>
				<a href="<?=Url::to(['site/logout'])?>">
					注销（<?php echo Yii::$app->user->identity->username; ?>） <i class="entypo-logout right"></i>
				</a>
			</li>
		</ul>
		
	</div>
	
</div>
